/**
 * @author gaopeng
 * @date 2019/12/14 9:42 下午
 */
public class ZhaoYun {
    public static void main(String[] args) {
        System.out.println("第一个策略");
        Context context = new Context(new BackDoor());
        context.operate();
        System.out.println();
        System.out.println("第二个策略");
        context = new Context(new GreenLight());
        context.operate();
        System.out.println();
        System.out.println("第三个策略");
        context = new Context(new BlackEnemy());
        context.operate();
    }
}
